package com.fzk.blog.settings.service;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fzk.blog.bean.Type;
import com.fzk.blog.bean.vo.TypeInfo;

import java.util.List;

/**
 * @author fzk
 * @date 2021-08-16 17:24
 */
public interface ITypeService {
    TypeInfo insertType(Type type, int loginId) throws JsonProcessingException;

    List<TypeInfo> getTypeInfoList() throws JsonProcessingException;

    TypeInfo getTypeById(Integer typeId) throws JsonProcessingException;

    TypeInfo updateType(Type type, int loginId) throws JsonProcessingException;

    TypeInfo deleteType(int typeId,int loginId);
}
